package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_notice")
@Schema(name = "TzNotice", description = "")
public class TzNotice implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "公告id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "店铺id")
    @TableField("shop_id")
    private Long shopId;

    @Schema(description = "公告标题")
    @TableField("title")
    private String title;

    @Schema(description = "公告内容")
    @TableField("content")
    private String content;

    @Schema(description = "状态(1:公布 0:撤回)")
    @TableField("status")
    private Boolean status;

    @Schema(description = "是否置顶")
    @TableField("is_top")
    private Byte isTop;

    @Schema(description = "发布时间")
    @TableField("publish_time")
    private LocalDateTime publishTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
